//
//  TNTeamFormCell.m
//  跑跑快销
//
//  Created by ylife on 14-5-7.
//  Copyright (c) 2014年 ylife. All rights reserved.
//
#define LableWidth self.frame.size.width / 4
#define CellHeight 40
#import "TNTeamFormCell.h"

@implementation TNTeamFormCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        self.backgroundColor = [UIColor grayColor];
        
        [self drawCell];
    }
    return self;
}

- (void)drawCell
{
    
    _menberLab = [[UILabel alloc]initWithFrame:CGRectMake(0 , 0, LableWidth, CellHeight)];
    [_menberLab setTextAlignment:NSTextAlignmentCenter];
    _menberLab.layer.borderColor = [UIColor blackColor].CGColor;
    _menberLab.layer.borderWidth = 0.25;
    [_menberLab setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_menberLab];

    _moneyLab = [[UILabel alloc]initWithFrame:CGRectMake(LableWidth, 0, LableWidth, CellHeight)];
    [_moneyLab setTextAlignment:NSTextAlignmentCenter];
    _moneyLab.layer.borderColor = [UIColor blackColor].CGColor;
    _moneyLab.layer.borderWidth = 0.25;
    [_moneyLab setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_moneyLab];

    _goalLab = [[UILabel alloc]initWithFrame:CGRectMake(LableWidth*2, 0, LableWidth, CellHeight)];
    [_goalLab setTextAlignment:NSTextAlignmentCenter];
    _goalLab.layer.borderColor = [UIColor blackColor].CGColor;
    _goalLab.layer.borderWidth = 0.25;
    [_goalLab setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_goalLab];

    _finishPercentLab = [[UILabel alloc]initWithFrame:CGRectMake(LableWidth*3, 0, LableWidth, CellHeight)];
    [_finishPercentLab setTextAlignment:NSTextAlignmentCenter];
    _finishPercentLab.layer.borderColor = [UIColor blackColor].CGColor;
    _finishPercentLab.layer.borderWidth = 0.25;
    [_finishPercentLab setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_finishPercentLab];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
